package com.qing.common.util

import com.arthenica.mobileffmpeg.FFmpeg

private const val TAG = "AudioUtils"

fun mp32Wav(mp3Path: String, wavPath: String): Int {
    LogUtil.d(TAG, "mp32Wav: mp3Path = $mp3Path, wavPath = $wavPath")
    FileUtils.createFile(wavPath)
    FileUtils.deleteFile(wavPath)
    return FFmpeg.execute(" -i $mp3Path -f wav $wavPath")
}